package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * 客户风险评测信息
 */
@ApiModel(description = "客户风险评测信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class AccountStatus   {
  @JsonProperty("customerId")
  private String customerId = null;

  @JsonProperty("accountName")
  private String accountName = null;

  @JsonProperty("status")
  private AccountStatusEnum status = null;

  @JsonProperty("details")
  @Valid
  private List<AccountStatusDetail> details = null;

  public AccountStatus customerId(String customerId) {
    this.customerId = customerId;
    return this;
  }

  /**
   * 客户号
   * @return customerId
  **/
  @ApiModelProperty(example = "880001472442", value = "客户号")


  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public AccountStatus accountName(String accountName) {
    this.accountName = accountName;
    return this;
  }

  /**
   * 账号名称
   * @return accountName
  **/
  @ApiModelProperty(example = "上证A股", value = "账号名称")


  public String getAccountName() {
    return accountName;
  }

  public void setAccountName(String accountName) {
    this.accountName = accountName;
  }

  public AccountStatus status(AccountStatusEnum status) {
    this.status = status;
    return this;
  }

  /**
   * Get status
   * @return status
  **/
  @ApiModelProperty(value = "")

  @Valid

  public AccountStatusEnum getStatus() {
    return status;
  }

  public void setStatus(AccountStatusEnum status) {
    this.status = status;
  }

  public AccountStatus details(List<AccountStatusDetail> details) {
    this.details = details;
    return this;
  }

  public AccountStatus addDetailsItem(AccountStatusDetail detailsItem) {
    if (this.details == null) {
      this.details = new ArrayList<AccountStatusDetail>();
    }
    this.details.add(detailsItem);
    return this;
  }

  /**
   * 条件不符的详细信息
   * @return details
  **/
  @ApiModelProperty(value = "条件不符的详细信息")

  @Valid

  public List<AccountStatusDetail> getDetails() {
    return details;
  }

  public void setDetails(List<AccountStatusDetail> details) {
    this.details = details;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AccountStatus accountStatus = (AccountStatus) o;
    return Objects.equals(this.customerId, accountStatus.customerId) &&
        Objects.equals(this.accountName, accountStatus.accountName) &&
        Objects.equals(this.status, accountStatus.status) &&
        Objects.equals(this.details, accountStatus.details);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customerId, accountName, status, details);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AccountStatus {\n");
    
    sb.append("    customerId: ").append(toIndentedString(customerId)).append("\n");
    sb.append("    accountName: ").append(toIndentedString(accountName)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    details: ").append(toIndentedString(details)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

